<!DOCTYPE html>
<html>
<head>

    <!--<script charset='utf-8' type='text/javascript' src='./jquery.js'></script>-->
    <!--<script src="./jquery.qrcode.min.js" type="text/javascript"></script>-->
    <script type="text/javascript" src="//cdn.bootcss.com/jquery/3.2.1/jquery.js"></script>
    <script type="text/javascript" src="//cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
    <script type="text/javascript" src="https://www.lequgirl.com/video/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="https://www.lequgirl.com/video/js/bootstrap.js"></script>
    <script type="text/javascript" src="https://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://www.lequgirl.com/video/js/jsbn.js"></script>
    <script type="text/javascript" src="https://www.lequgirl.com/video/js/rsa.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('#qr_gen').click(function () {
                $('#qr_container').qrcode({
                    render: "canvas",
                    height: 170,
                    width: 170,
                    correctLevel: 0,
                    background: "#ffffff",
                    foreground: "#000000",
                    scr: "/images/logo.jpg",
//                    text: $('#qr_link').val()
                    text: '<span style="font-family: Consolas, Courier New, Courier, mono, serif; line-height: 18px;">http://www.baidu.com</span>'
                });
            });
        });
    </script>
    <script type="text/javascript">
        function encrypt() {
            var a = "-----BEGIN PUBLIC KEY-----                MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCyDR+V/DU0CyYWakhPSjLwWVmC                mMqo3uugmVXPitly7BqltGDW0c1PbcQ4Y+O/lukAa3qBvxEGqwhZSQokUCQ/mCHt                FfmwlGmhHpSLZKKtPVOCKyZGCW6JdQs2ijKVgmks3jxSQ0ceeTrKU6f4KWL89DYq                CTqExJISjSAq5MAarQIDAQAB                -----END PUBLIC KEY-----";
            var b = RSA.getPublicKey(a);
//        element = document.getElementById("input_url");
            console.log(RSA.encrypt('123', b));
//        return RSA.encrypt(element.value, b);
        }

        encrypt();
    </script>
</head>
<body>
<h1>QR CODER</h1>
<div>
    <label for="qr_link">URL:</label>
    <input id="qr_link" type="text" value="I am going to be a quick response code." style="width:450px;"/>
    <button id="qr_gen" value="Generate">Generate</button>
    <br/>
</div>
<div id="qr_container" style="margin:auto; position:relative;"></div>
</div>
</body>
</html>
<!--禁止F12 -->
<script type="text/javascript">
    document.oncontextmenu = function () {
        return false;
    };
    document.onkeydown = function () {
        if (window.event && window.event.keyCode == 123) {
            event.keyCode = 0;
            event.returnValue = false;
            return false;
        }
    };

</script>
<!--禁止F12END -->

